package com.ruoyi.planthopper.service.Impl;

import com.ruoyi.planthopper.domain.PlotInfo;
import com.ruoyi.planthopper.domain.UpdatePlot;
import com.ruoyi.planthopper.mapper.PlotMapper;
import com.ruoyi.planthopper.service.PlotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: class by cxf
 * @author: AbrahamBill
 * @date: 2022/7/22
 **/
@Service
public class PlotServiceImpl implements PlotService {
    @Autowired
    private PlotMapper plotMapper;

    public List<PlotInfo> selectPlotList(PlotInfo plotInfo){
        return plotMapper.selectPlotList(plotInfo);
    }

    public int insertPlot(PlotInfo plotInfo){return plotMapper.insertPlot(plotInfo);}

    public int updatePlotNameById(UpdatePlot updatePlot){return plotMapper.updatePlotNameById(updatePlot);}
}
